/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __37F9D32B_31F4_455b_BEDD_5E9BE1EF8F71__
#define __37F9D32B_31F4_455b_BEDD_5E9BE1EF8F71__

namespace xos_curl
{

    class mgr : public i_curl_mgr
    {
    public:
        typedef xos::release_impl< mgr > T;

    public:
        mgr();
        ~mgr();

    public:
        static int static_init( xos_container::i_container* pContainer, i_curl_mgr** ppv );
        static xos_container::i_container* container();
        static mgr* get();

    protected:
        bool m_bInit;

    public:
        // 
        // create node
        // 
        i_curl* curl();
        int init();
        int term();

    public:
        int put_back_to_pool();

    };

} // xos_curl

#endif // __37F9D32B_31F4_455b_BEDD_5E9BE1EF8F71__
